<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = [1, 2, 3, 4, 5, 6];
        console.log(...arr);

        let arr1 = ["张三", "李四", "王五"];
        console.log(...arr1);

        let set = new Set(["刘能", "赵四", "广坤"]);
        //打印 数组中 所有数组项
        console.log(...set);

        let map = new Map(
            [
                ["name", "张三"],
                ["age", 18],
                [[1, 2], "这是一个键名为数组的键值对"]
            ]
        );
        //打印 数组中 所有数组项
        console.log(...map);
    </script>
</body>

</html>